package com.ww.basic.fun

object funTest2 {
  def main(args: Array[String]): Unit = {
    printStrings("Runoob", "Scala", "Python")
  }

  /**
   * 可变参数列表
   * @param args
   */
  def printStrings(args: String*) = {
    var i: Int = 0
    for (arg <- args) {
      println("Arg value[" + i + "] = " + arg)
      i = i + 1
    }
  }
}
